package com.originalpoint.origin_server.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *地址实体类
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Schema(name = "Address" ,description = "地址信息表")
public class Address {
    @Schema(name = "addressId" ,description = "地址ID")
    private Integer addressId;

    @Schema(name = "Address" ,description = "区")
    private String region;

    @Schema(name = "Address" ,description = "街道")
    private String street;

    @Schema(name = "Address" ,description = "详细地址")
    private String detailAddress;

//    地址信息的有参构造（无Id）
    public Address(String region, String street, String detailAddress) {
        this.region = region;
        this.street = street;
        this.detailAddress = detailAddress;
    }
}
